<template>
  <view>

    <u-button v-for="(item,k) in list" :key="k" @click="toPage(item.path,item.isTabbar)">{{ item.name }}</u-button>
  </view>
</template>

<script setup>
import {ref} from 'vue'
import {toPage} from "@/api/fun";

const list = ref([
  {
    name: '商城',
    path: '/pages/mall/home/index',
    isTabbar:true
  },
  {
    name: '交易所',
    path: '/pages/exchange/contract/contract'
  },
  {
    name: '游戏',
    path: '/pages/game/home/home'
  }
])

</script>

<style>

</style>